<template>
  <div class="about-container">
    <el-card>
      <template #header>
        <div class="card-header">
          <span>关于我们</span>
        </div>
      </template>
      
      <div class="about-content">
        <div class="about-header">
          <img src="../assets/logo.png" alt="Logo" class="about-logo" />
          <h2>图书管理系统</h2>
          <p class="about-slogan">知识的海洋，智慧的殿堂</p>
        </div>
        
        <div class="about-section">
          <h3>系统简介</h3>
          <p>图书管理系统是一款专为图书馆、学校、企业和个人设计的图书管理软件。它提供了图书信息管理、借阅管理、归还管理等功能，帮助用户高效地管理图书资源。</p>
          <p>本系统采用现代化的设计理念，界面简洁直观，操作便捷。支持多种主题和语言，满足不同用户的个性化需求。</p>
        </div>
        
        <div class="about-section">
          <h3>核心功能</h3>
          <el-row :gutter="20">
            <el-col :span="8">
              <el-card shadow="hover" class="feature-card">
                <template #header>
                  <div class="feature-header">
                    <el-icon><Reading /></el-icon>
                    <span>图书管理</span>
                  </div>
                </template>
                <p>全面管理图书信息，支持添加、编辑、删除图书，快速检索。</p>
              </el-card>
            </el-col>
            <el-col :span="8">
              <el-card shadow="hover" class="feature-card">
                <template #header>
                  <div class="feature-header">
                    <el-icon><TakeawayBox /></el-icon>
                    <span>借阅管理</span>
                  </div>
                </template>
                <p>便捷的图书借阅流程，记录借阅信息，管理借阅状态。</p>
              </el-card>
            </el-col>
            <el-col :span="8">
              <el-card shadow="hover" class="feature-card">
                <template #header>
                  <div class="feature-header">
                    <el-icon><Back /></el-icon>
                    <span>归还管理</span>
                  </div>
                </template>
                <p>简化图书归还过程，自动更新图书状态，保持记录完整。</p>
              </el-card>
            </el-col>
          </el-row>
        </div>
        
        <div class="about-section">
          <h3>开发团队</h3>
          <el-row :gutter="20">
            <el-col :span="6" v-for="(member, index) in teamMembers" :key="index">
              <div class="team-member">
                <el-avatar :size="80" :src="member.avatar">{{ member.name.charAt(0) }}</el-avatar>
                <h4>{{ member.name }}</h4>
                <p>{{ member.role }}</p>
              </div>
            </el-col>
          </el-row>
        </div>
        
        <div class="about-section">
          <h3>联系我们</h3>
          <p><i class="el-icon-location"></i> 地址：北京市海淀区中关村大街123号科技大厦5层</p>
          <p><i class="el-icon-phone"></i> 电话：010-12345678</p>
          <p><i class="el-icon-message"></i> 邮箱：support@library-system.com</p>
          <p><i class="el-icon-link"></i> 网站：www.library-system.com</p>
        </div>
        
        <div class="about-footer">
          <p>© 2023 图书管理系统 保留所有权利</p>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script setup>
import { Reading, TakeawayBox, Back } from '@element-plus/icons-vue';

// 团队成员数据
const teamMembers = [
  {
    name: '张三',
    role: '项目经理',
    avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png'
  },
  {
    name: '李四',
    role: '前端开发',
    avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png'
  },
  {
    name: '王五',
    role: '后端开发',
    avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png'
  },
  {
    name: '赵六',
    role: '测试工程师',
    avatar: 'https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png'
  }
];
</script>

<style scoped>
.about-container {
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.about-content {
  padding: 20px 0;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-logo {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
}

.about-slogan {
  color: var(--el-text-color-secondary);
  font-size: 16px;
  margin-top: 5px;
}

.about-section {
  margin-bottom: 40px;
}

.about-section h3 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--el-border-color-light);
  font-weight: normal;
}

.feature-card {
  height: 100%;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-member {
  text-align: center;
  margin-bottom: 20px;
}

.team-member h4 {
  margin: 10px 0 5px 0;
}

.team-member p {
  color: var(--el-text-color-secondary);
  margin: 0;
}

.about-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--el-border-color-light);
  color: var(--el-text-color-secondary);
}
</style> 